package priv.menghan.happy.learning.user.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户角色关系 Entity
 *
 * @author Monika
 * @since 2025-06-15 01:37:27
 */
@Data
	@EqualsAndHashCode(callSuper = false)
	@TableName("user_role")
public class UserRole implements

		Serializable {

			private static final long serialVersionUID = 1L;

				/**
				 * 主键ID
				 */
				@TableId(value = "id", type = IdType.AUTO)
			private Long id;
				/**
				 * 用户ID
				 */
			private Long userId;
				/**
				 * 角色ID
				 */
			private Integer roleId;
				/**
				 * 创建时间
				 */
			private Date createTime;

		}
